package org.xlh.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.xlh.springboot.bean.User;
import org.xlh.springboot.service.UserService;

@SpringBootApplication
public class Springboot305JunitApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(Springboot305JunitApplication.class, args);
		UserService userService = run.getBean("userServiceImpl", UserService.class);
		User user = userService.findUser();
		System.out.println(user);
		run.close();
	}

}
